
SHELL = /bin/sh

#### Start of system configuration section. ####

srcdir = .
topdir = /usr/lib/ruby/1.8/x86_64-linux
hdrdir = $(topdir)
VPATH = $(srcdir):$(topdir):$(hdrdir)
exec_prefix = $(prefix)
prefix = $(DESTDIR)/usr
sharedstatedir = $(prefix)/com
mandir = $(prefix)/share/man
psdir = $(docdir)
oldincludedir = $(DESTDIR)/usr/include
localedir = $(datarootdir)/locale
bindir = $(exec_prefix)/bin
libexecdir = $(prefix)/lib/ruby1.8
sitedir = $(DESTDIR)/usr/local/lib/site_ruby
htmldir = $(docdir)
vendorarchdir = $(vendorlibdir)/$(sitearch)
includedir = $(prefix)/include
infodir = $(prefix)/share/info
vendorlibdir = $(vendordir)/$(ruby_version)
sysconfdir = $(DESTDIR)/etc
libdir = $(exec_prefix)/lib
sbindir = $(exec_prefix)/sbin
rubylibdir = $(libdir)/ruby/$(ruby_version)
docdir = $(datarootdir)/doc/$(PACKAGE)
dvidir = $(docdir)
vendordir = $(libdir)/ruby/vendor_ruby
datarootdir = $(prefix)/share
pdfdir = $(docdir)
archdir = $(rubylibdir)/$(arch)
sitearchdir = $(sitelibdir)/$(sitearch)
datadir = $(datarootdir)
localstatedir = $(DESTDIR)/var
sitelibdir = $(sitedir)/$(ruby_version)

CC = cc
LIBRUBY = $(LIBRUBY_SO)
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static

RUBY_EXTCONF_H = 
CFLAGS   =  -fPIC -fno-strict-aliasing -g -g -O2  -fPIC $(cflags) -DEBUG 
INCFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir)
DEFS     = 
CPPFLAGS =   $(DEFS) $(cppflags)
CXXFLAGS = $(CFLAGS) 
ldflags  = -L. -Wl,-Bsymbolic-functions -rdynamic -Wl,-export-dynamic
dldflags = 
archflag = 
DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
LDSHARED = $(CC) -shared
AR = ar
EXEEXT = 

RUBY_INSTALL_NAME = ruby1.8
RUBY_SO_NAME = ruby1.8
arch = x86_64-linux
sitearch = x86_64-linux
ruby_version = 1.8
ruby = /usr/bin/ruby1.8
RUBY = $(ruby)
RM = rm -f
MAKEDIRS = mkdir -p
INSTALL = /usr/bin/install -c
INSTALL_PROG = $(INSTALL) -m 0755
INSTALL_DATA = $(INSTALL) -m 644
COPY = cp

#### End of system configuration section. ####

preload = 

libpath = . $(libdir)
LIBPATH =  -L. -L$(libdir)
DEFFILE = 

CLEANFILES = mkmf.log
DISTCLEANFILES = 

extout = 
extout_prefix = 
target_prefix = 
LOCAL_LIBS = 
LIBS = $(LIBRUBYARG_SHARED) -lstdc++ -lsupc++  -lpthread -ldl -lcrypt -lm   -lc
SRCS = alglib.cxx clu.cpp wsr.cpp expintegrals.cpp gqgenlaguerre.cpp bdsvd.cpp crcond.cpp mlpe.cpp cholesky.cpp laguerre.cpp det.cpp spdrcond.cpp binomialdistr.cpp srcond.cpp ibetaf.cpp mannwhitneyu.cpp normaldistr.cpp hevd.cpp polinterpolation.cpp cblas.cpp gqgenlegendre.cpp mlpbase.cpp fresnel.cpp poissondistr.cpp legendre.cpp tridiagonal.cpp spdgevd.cpp spline2d.cpp dawson.cpp trigintegrals.cpp lda.cpp studenttdistr.cpp sbisinv.cpp hbisinv.cpp ldlt.cpp rsolve.cpp variancetests.cpp cinverse.cpp kmeans.cpp creflections.cpp descriptivestatistics.cpp blas.cpp sblas.cpp mlptrain.cpp tdevd.cpp hcholesky.cpp reflections.cpp ctrlinsolve.cpp airyf.cpp bdss.cpp logit.cpp stest.cpp igammaf.cpp spdinverse.cpp minlm.cpp gqgenradau.cpp bessel.cpp sdet.cpp csolve.cpp ap.cpp lbfgs.cpp chebyshev.cpp jarquebera.cpp gqgenlobatto.cpp svd.cpp spdsolve.cpp ssolve.cpp betaf.cpp estnorm.cpp ialglib.cpp sinverse.cpp elliptic.cpp trinverse.cpp nearunityunit.cpp hermite.cpp tdbisinv.cpp dforest.cpp lq.cpp schur.cpp lu.cpp hessenberg.cpp hsschur.cpp leastsquares.cpp ratinterpolation.cpp qr.cpp bidiagonal.cpp gqgenjacobi.cpp jacobianelliptic.cpp gqgenhermite.cpp correlation.cpp rotations.cpp chisquaredistr.cpp ctrinverse.cpp pca.cpp cdet.cpp gammaf.cpp sevd.cpp tsort.cpp gqgengauss.cpp alglib_util.cpp correlationtests.cpp spddet.cpp nsevd.cpp psif.cpp htridiagonal.cpp inv.cpp rcond.cpp inverseupdate.cpp spline3.cpp linreg.cpp hblas.cpp trlinsolve.cpp fdistr.cpp studentttests.cpp
OBJS = alglib.o clu.o wsr.o expintegrals.o gqgenlaguerre.o bdsvd.o crcond.o mlpe.o cholesky.o laguerre.o det.o spdrcond.o binomialdistr.o srcond.o ibetaf.o mannwhitneyu.o normaldistr.o hevd.o polinterpolation.o cblas.o gqgenlegendre.o mlpbase.o fresnel.o poissondistr.o legendre.o tridiagonal.o spdgevd.o spline2d.o dawson.o trigintegrals.o lda.o studenttdistr.o sbisinv.o hbisinv.o ldlt.o rsolve.o variancetests.o cinverse.o kmeans.o creflections.o descriptivestatistics.o blas.o sblas.o mlptrain.o tdevd.o hcholesky.o reflections.o ctrlinsolve.o airyf.o bdss.o logit.o stest.o igammaf.o spdinverse.o minlm.o gqgenradau.o bessel.o sdet.o csolve.o ap.o lbfgs.o chebyshev.o jarquebera.o gqgenlobatto.o svd.o spdsolve.o ssolve.o betaf.o estnorm.o ialglib.o sinverse.o elliptic.o trinverse.o nearunityunit.o hermite.o tdbisinv.o dforest.o lq.o schur.o lu.o hessenberg.o hsschur.o leastsquares.o ratinterpolation.o qr.o bidiagonal.o gqgenjacobi.o jacobianelliptic.o gqgenhermite.o correlation.o rotations.o chisquaredistr.o ctrinverse.o pca.o cdet.o gammaf.o sevd.o tsort.o gqgengauss.o alglib_util.o correlationtests.o spddet.o nsevd.o psif.o htridiagonal.o inv.o rcond.o inverseupdate.o spline3.o linreg.o hblas.o trlinsolve.o fdistr.o studentttests.o
TARGET = alglib
DLLIB = $(TARGET).so
EXTSTATIC = 
STATIC_LIB = 

BINDIR        = $(bindir)
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
RUBYLIBDIR    = $(sitelibdir)$(target_prefix)
RUBYARCHDIR   = $(sitearchdir)$(target_prefix)

TARGET_SO     = $(DLLIB)
CLEANLIBS     = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
CLEANOBJS     = *.o *.a *.s[ol] *.pdb *.exp *.bak

all:		$(DLLIB)
static:		$(STATIC_LIB)

clean:
		@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)

distclean:	clean
		@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
		@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)

realclean:	distclean
install: install-so install-rb

install-so: $(RUBYARCHDIR)
install-so: $(RUBYARCHDIR)/$(DLLIB)
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
	$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
install-rb: pre-install-rb install-rb-default
install-rb-default: pre-install-rb-default
pre-install-rb: Makefile
pre-install-rb-default: Makefile
$(RUBYARCHDIR):
	$(MAKEDIRS) $@

site-install: site-install-so site-install-rb
site-install-so: install-so
site-install-rb: install-rb

.SUFFIXES: .c .m .cc .cxx .cpp .C .o

.cc.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.cxx.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.cpp.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.C.o:
	$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<

.c.o:
	$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<

$(DLLIB): $(OBJS)
	@-$(RM) $@
	$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)



$(OBJS): ruby.h defines.h
